import { Outlet, ScrollRestoration } from "react-router-dom"
import Nav from "./Nav"
function Layout() {
    return (
        <div id="layout">
            <Nav />
            <div className="right_main">
                <Outlet /> {/* 类似 Vue 的 router-view */}
            </div>
            <ScrollRestoration /> {/* 切换路由，重置滚动条 */}
        </div>
    )
}

export default Layout
